﻿
var app = angular.module("app", ['ngRoute'])

app.config(function ($routeProvider) {

    $routeProvider.when("/Factura", {

        templateUrl: "app/vistas/Factura.html"
    });
    $routeProvider.when("/Producto", {

        templateUrl: "app/vistas/Producto.html"
    });

});

app.controller("miController", function ($scope) {
    $scope.save = function () {

        console.log("Alerta" + $scope.nombre);
    }
 //$scope.productos = [{ "id": "26fbf9aa-9ae7-e411-827a-74d02bc102fb", "nombre": "Radio", "descripcion": "FM", "stock": "25" }, { "id": "eb5e4f1f-9be7-e411-827a-74d02bc102fb", "nombre": "TV", "descripcion": "De 26 Pulgadas", "stock": "25" }, { "id": "2ad37264-d6e7-e411-827a-74d02bc102fb", "nombre": "Casaca", "descripcion": "Casaca Talla M Color Rj,Negro", "stock": "30" }];

});